import React, { Fragment } from 'react'
import  * as Icons from '@ant-design/icons'

export default function Index(props) {
  const dynamicIcon = React.createElement(
    Icons[props.type],
    props
  )
  return (
    <Fragment>{dynamicIcon}</Fragment>
  )
}
